<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <h2>Group Database:</h2>
    <body>
        <?php
        $User_Name = $_POST['User_Name'];
        $password = $_POST['password'];
        if(isset($_POST['save'])){
            echo "Record Saved <br>";
        }
        if(isset($_POST['delete'])){
            echo "Record Deleted <br>";
        }
        if(isset($_POST['find'])){
            echo "Display Record Found <br>";
        }
        if(isset($_POST['search'])){
            echo "Enter Company Name to Search <br>";
            ?>
            Company Name: <input type="text" name="CName">
            <form action="Group.php" method ="POST">
            <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
            <input type=hidden name=password value="<?php echo $password;?>">
            <input type="submit" name="find" value="Find">
            </form>
            <?php
        }else{
        ?>
        Company Name: <input type="text" name="CName">       Contact Person: <input type="text" name="CPerson"><br>
        Street Address: <input type="text" name="Address">       Carrier: <input type="text" name="Carrier"><br>
        City: <input type="text" name="City">       Coverage Type: <input type="text" name="CType"><br>
        Business Number: <input type="text" name="BNumber">       Effective Date: <input type="text" name="EDate"><br>
        Fax Number: <input type="text" name="FNumber">       Renewal Date: <input type="text" name="RDate"><br>
        <form action="Group.php" method ="POST">
        <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
        <input type=hidden name=password value="<?php echo $password;?>">
        <input type="submit" name="save" value="Save">
        </form>
        <form action="Group.php" method ="POST">
        <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
        <input type=hidden name=password value="<?php echo $password;?>">
        <input type="submit" name="delete" value="Delete">
        </form>
        <form action="Group.php" method ="POST">
        <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
        <input type=hidden name=password value="<?php echo $password;?>">
        <input type="submit" name="search" value="Search">
        </form>
        <form action="Choose.php" method ="POST">
        <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
        <input type=hidden name=password value="<?php echo $password;?>"> 
        <input type="submit" name="LogOut" value="Back">
        </form>
        <?php
        }?>
    </body>
</html>
